package com.tequila.core.dao;

import com.tequila.domain.dto.CardCouponReceiveRecordDto;
import com.tequila.domain.entity.CardCouponReceiveRecord;
import com.tequila.domain.query.CardCouponReceiveRecordQuery;

import java.util.List;

public interface CardCouponReceiveRecordDao {
    CardCouponReceiveRecord queryById(Long id);

    List<CardCouponReceiveRecordDto> queryByIdList(List<Long> idList);

    List<CardCouponReceiveRecordDto> queryListByParam(CardCouponReceiveRecordQuery query);

    List<CardCouponReceiveRecordDto> queryPageListByParam(CardCouponReceiveRecordQuery query);

    int queryPageCountByParam(CardCouponReceiveRecordQuery query);

    int insert(CardCouponReceiveRecord entity);

    int insertSelective(CardCouponReceiveRecord entity);

    int updateById(CardCouponReceiveRecord param);

    int updateSelectiveById(CardCouponReceiveRecord param);

    int deleteById(Long id);

    int deleteByIdList(List<Long> idList);
}